<template>
    <div id="app" class="incidentCenter">
        <div class="harnessNav">
            <div>
                <div>
                    事件中心
                </div>
                <div class="userNavT">
                    <!--<div :class="{navSel:isNavSel = tempName.name == 0 ? true : false }">
                        事件中心
                    </div>-->
                </div>
            </div>
        </div>
        <div class="harnDeta">
            <router-view keep-alive></router-view>
        </div>
    </div>
</template>

<script>
    import { mapActions, mapState } from 'vuex'
    export default {
        name: 'incidentCenter',
        data() {
            return {
                isNavSel: true
            }
        },
        computed: mapState(['tempName', 'ceshi']),
        created: function () {
            this.ceshi.name = '123456'
        },
        filters: {
            ctimeFun: function (val) {
                var now = new Date(val)
                var year = now.getYear() - 100;
                var month = now.getMonth() + 1;
                month = month > 9 ? month : "0" + month
                var date = now.getDate();
                date = date > 9 ? date : "0" + date
                var hour = now.getHours();
                hour = hour > 9 ? hour : "0" + hour
                var minute = now.getMinutes();
                minute = minute > 9 ? minute : "0" + minute
                return "20" + year + "-" + month + "-" + date + "   " + hour + ":" + minute;
            }
        },
        methods: {

        }
    }

</script>

<style scoped src="../../assets/css/incidentCenter.css">

</style>